package com.yjck.fm.spend.service;

import java.util.List;

import com.yjck.fm.common.QueryResult;
import com.yjck.fm.spend.bean.SpendType;
import com.yjck.fm.spend.dao.SpendManagerDAO;

public class SpendManagerService {
	private SpendManagerDAO spendManagerDAO;

	/**
	 * 注入
	 * 
	 * @param spendManagerDAO
	 */
	public void setSpendManagerDAO(SpendManagerDAO spendManagerDAO) {
		this.spendManagerDAO = spendManagerDAO;
	}

	public List<SpendType> getSpendTypeList() {
		return spendManagerDAO.getSpendTypeList();
	}

	public boolean addSpendInfo(String sdesc, String sdate, String price, String type,
			Integer uid) {
		return spendManagerDAO.addSpendInfo(sdesc, sdate, price, type, uid);
	}

	public QueryResult getSpendInfos(String sdesc, String type, String sdate,int start,int limit) {
		return this.spendManagerDAO.getSpendInfos(sdesc,type,sdate,start,limit);
	}

}
